package com.guigu.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("carts")
public class Carts {
    @TableId(type = IdType.AUTO)
    private Integer cartId;

    @TableField("user_id")
    private Integer userId;

    @TableField("product_id")
    private Integer productId;

    private Integer sum;
    
    private Float subtotal;

    @TableField(exist = false)
    private Products product;

    @TableField(exist = false)
    private List<ProductImage> Image;

    





}